<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SiteAdministration.aspx.cs" Inherits="SiteAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="5" cellspacing="0"  width="100%">
    <tr>
    <td bgcolor="#EBE7E7">Site Administration</td>
    </tr>
    </table>
    <table id="Table1" cellpadding="0" cellspacing="0" width="100%">
            <tr style="font-size: 10pt; color: #000000">
                <td>
                    <table cellpadding="5" cellspacing="1" style="width: 100%">
                        <tr><td style="width: 25%"><asp:HyperLink ID="lnkAddInstance" runat="server" NavigateUrl="~/AddInstance.aspx">Add Instance</asp:HyperLink></td>
                            <td style="width: 25%"><asp:HyperLink ID="lnLoginPassword" runat="server" NavigateUrl="~/LoginPasswordList.aspx">Login/Password</asp:HyperLink></td>
                            <td style="width: 25%"><asp:HyperLink ID="lnkDatabaseVerification" runat="server" NavigateUrl="~/DatabaseVerificationAdmin.aspx">Database Verification</asp:HyperLink></td>
                            <td style="width: 25%"><asp:HyperLink ID="lnkServicePackReport" runat="server" NavigateUrl="~/RptServicePack.aspx">Service Pack Report</asp:HyperLink></td>
                        </tr>
                    </table>
                </td>
            </tr>
    </table>
    <table cellpadding="5" cellspacing="0"  width="100%">
        <tr><td bgcolor="#EBE7E7">Contacts [<asp:HyperLink ID="lnkAddDBAContact" runat="server" 
                                    NavigateUrl="~/ContactAdd.aspx">Add</asp:HyperLink>
                            ]</td></tr>
    </table>
            <table cellpadding="0" cellspacing="0"  width="100%">
            <tr>
                <td>
                    <asp:GridView ID="gv" runat="server" AutoGenerateColumns="false" CellPadding="4" ForeColor="#333333"
                        GridLines="None" Width="100%">
                        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="DBAContactID" DataNavigateUrlFormatString="~/ContactDetail.aspx?DBAContactID={0}" DataTextField="DBAContactName" HeaderText="DBAContactName">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="DBAOfficePhone" HeaderText="OfficePhone">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="DBAMobilePhone" HeaderText="MobilePhone">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="DBAHomePhone" HeaderText="HomePhone">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="DBANotificationFlag" HeaderText="Notifications">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="DBAOnCallFlag" HeaderText="Alerts">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
         </Columns>
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" ForeColor="White"
                            HorizontalAlign="Left" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                    </td>
            </tr>
    </table>
    <table id="Table2" cellpadding="5" cellspacing="0"  width="100%">
            <tr style="font-size: 10pt; color: #000000">
                <td bgcolor="#EBE7E7">Configuration Settings</td>
            </tr>
            <tr>
                <td>
                    <table cellpadding="5" cellspacing="1" width="100%">
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Application Name:</td>
                            <td style="width: 524px">
                                <asp:TextBox ID="txtAppName" runat="server" Width="450px"></asp:TextBox>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="btnUpdateAppName" runat="server" 
                                    onclick="btnUpdateAppName_Click">Update</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Footer Text:</td>
                            <td style="width: 524px">
                                <asp:TextBox ID="txtFooterText" runat="server" Width="450px"></asp:TextBox>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="btnUpdateFooterText" runat="server" 
                                    onclick="btnUpdateFooterText_Click">Update</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Time1 Display:</td>
                            <td style="width: 524px">
                                <asp:TextBox ID="txtTime1Display" runat="server" Width="250px"></asp:TextBox>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="btnUpdateTime2Display1" runat="server" 
                                    onclick="btnUpdateTime2Display1_Click">Update</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Time1 TimeZone:</td>
                            <td style="width: 524px">
                    <asp:DropDownList ID="DDLTimeZone1" runat="server" Width="450px">
                    </asp:DropDownList>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="btnUpdateTime1TimeZone" runat="server" 
                                    onclick="btnUpdateTime1TimeZone_Click">Update</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Time2 Display:</td>
                            <td style="width: 524px">
                                <asp:TextBox ID="txtTime2Display" runat="server" Width="250px"></asp:TextBox>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="btnUpdateTime2Display" runat="server" 
                                    onclick="btnUpdateTime2Display_Click">Update</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Time2 TimeZone:</td>
                            <td style="width: 524px">
                    <asp:DropDownList ID="DDLTimeZone2" runat="server" Width="450px">
                    </asp:DropDownList>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="btnUpdateTime2TimeZone" runat="server" 
                                    onclick="btnUpdateTime2TimeZone_Click">Update</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Time3 Display:</td>
                            <td style="width: 524px">
                                <asp:TextBox ID="txtTime3Display" runat="server" Width="250px"></asp:TextBox>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="btnUpdateTime3Display" runat="server" 
                                    onclick="btnUpdateTime3Display_Click">Update</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Time3 TimeZone:</td>
                            <td style="width: 524px">
                    <asp:DropDownList ID="DDLTimeZone3" runat="server" Width="450px">
                    </asp:DropDownList>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="btnUpdateTime3TimeZone" runat="server" 
                                    onclick="btnUpdateTime3TimeZone_Click">Update</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Time4 Display:</td>
                            <td style="width: 524px">
                                <asp:TextBox ID="txtTime4Display" runat="server" Width="250px"></asp:TextBox>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="btnUpdateTime4Display" runat="server" 
                                    onclick="btnUpdateTime4Display_Click">Update</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Time4 TimeZone:</td>
                            <td style="width: 524px">
                    <asp:DropDownList ID="DDLTimeZone4" runat="server" Width="450px">
                    </asp:DropDownList>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="btnUpdateTime4TimeZone" runat="server" 
                                    onclick="btnUpdateTime4TimeZone_Click">Update</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td bgcolor="#EBE7E7" style="width: 150px">Company Logo:</td>
                            <td style="width: 524px">
                                <asp:Image ID="imgLogo" runat="server" />
                                <asp:FileUpload ID="GetLogo" runat="server" Width="230px" Visible="False" />
&nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="GetLogo" ErrorMessage="Must be (.gif, .png, .jpg, or .jpeg)" Font-Bold="True" Font-Size="XX-Small" ValidationExpression=".*((\.jpg)|(\.jpeg)|(\.gif)|(.png))" Display="Dynamic"></asp:RegularExpressionValidator>
                                <asp:Label ID="lblStatus" runat="server" Font-Bold="True" Font-Size="XX-Small" ForeColor="Red"></asp:Label>
                            </td>
                            <td style="text-align: center">
                                <asp:Button ID="btnChangeLogo" runat="server" OnClick="btnChangeLogo_Click" Text="Change Logo" Width="95px" />
                                <asp:Button ID="btnUpdateLogo" runat="server" OnClick="btnUpdateLogo_Click" Text="Update Logo" Visible="False" Width="95px" />
                            </td>
                        </tr>
                        </table>
                    </td>
            </tr>        
    </table>
    <table cellpadding="5" cellspacing="0" width="100%">
    <tr>
    <td bgcolor="#EBE7E7">User Administration</td>
    </tr>
    </table>
    <table id="Table3" cellpadding="0" cellspacing="1"  width="100%">
            <tr style="font-size: 10pt; color: #000000">
                <td>
                    <asp:GridView ID="gv1" runat="server" AutoGenerateColumns="false" CellPadding="4" ForeColor="#333333"
                        GridLines="None" Width="100%">
                        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="UserDomain,UserNetworkLogin" DataNavigateUrlFormatString="~/UserDetail.aspx?UserDomain={0}&UserNetworkLogin={1}" DataTextField="UserLogin" HeaderText="Login">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:HyperLinkField>            
            <asp:BoundField DataField="UserFullName" HeaderText="Name">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="TimeZone" HeaderText="TimeZone">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="isAdmin" HeaderText="isAdmin">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
         </Columns>
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" ForeColor="White"
                            HorizontalAlign="Left" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                    </td>
            </tr>
    </table>
</asp:Content>